package design.observer;

/**
 * 测试侦听器
 *
 * @author dingwen
 * @date 2022/04/23
 */
public class TestListener extends Listener{

    public TestListener(Event event) {
        this.event = event;
        this.event.addListener(this);
    }

    /**
     * 执行官
     */
    @Override
    void exec() {
        System.out.println("业务逻辑....");
    }
}
